<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试显示/隐藏</title>
    <style>
        div:first-child{
            display: none;
            /*隐藏后空间消失*/
        }
        div:nth-child(2){
            /*隐藏后空间还在*/
            visibility: hidden;
        }
    </style>
</head>
<body>
<div><img src="image/imgmario.png" alt=""></div>
<div><img src="image/img_tree.png" alt=""></div>
<div><img src="image/paper.gif" alt=""></div>
</body>
</html>